From: Colin Walters Date: Sun, 19 Apr 2015 19:25:05 +0000 (-0400) Subject: sysroot: Close sysroot fd in finalize X-Git-Tag: archive/raspbian/2022.1-3+rpi1~1^2~785 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=f08cb802ea1b02c874fd71a0672c28b49e890d49;p=ostree.git sysroot: Close sysroot fd in finalize Just noticed this while I was going to add another one there. --- diff --git a/src/libostree/ostree-sysroot.c b/src/libostree/ostree-sysroot.c index b18c6b70..62558037 100644 --- a/src/libostree/ostree-sysroot.c +++ b/src/libostree/ostree-sysroot.c @@ -66,6 +66,9 @@ ostree_sysroot_finalize (GObject *object) g_clear_object (&self->sepolicy); g_clear_object (&self->repo); + if (self->sysroot_fd != -1) + (void) close (self->sysroot_fd); + G_OBJECT_CLASS (ostree_sysroot_parent_class)->finalize (object); }